#include <iostream>
using namespace std;

int main(int argc, char const *argv[])
{
    int n;
    cin >> n;

    if(n%3 == 0)
        cout << (n-1)/3 + 1 << endl;
    else
        cout << n/3 + 1 << endl;

    return 0;
}
